package com.mercury.share.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mercury.share.entity.ShareImgs;
import com.mercury.share.mapper.ShareImgsMapper;
import com.mercury.share.service.ShareImgsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.data.web.config.QuerydslWebConfiguration;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tong
 * @since 2021-11-22
 */
@Service
public class ShareImgsServiceImpl extends ServiceImpl<ShareImgsMapper, ShareImgs> implements ShareImgsService {

    @Override
    public List<ShareImgs> getList(Integer id) {
        QueryWrapper<ShareImgs> wrapper = new QueryWrapper<>();
        wrapper.eq("share_id",id);
        return baseMapper.selectList(wrapper);
    }
}
